package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * version(版本表)
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("version")
@ApiModel(value = "Version对象", description = "version(版本表)")
public class Version extends Model<Version> {

    private static final long serialVersionUID = 1L;

    @TableId("version")
    private String version;

    @TableField("is_warn")
    private Boolean isWarn;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.version;
    }

}
